import { gloabErrorHandler } from '@/extend/express'
import './env'
import { routers } from '@/routers'
import cors from 'cors'
import express from 'express'
import 'express-async-errors'
import { logger } from './logger'


export const app = express()

app.use(logger)
    .use(cors())
    .use(routers)

app.use(gloabErrorHandler)






